package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.player.UserHistoryAttribute;

import java.util.List;
import java.util.Map;


public class UserHistoryAttributeBussiness {

    public static long getAllHistoryByLoginUser(long time) {
        return DaoHelper.getUserHistoryAttributeDaoImpl().getAllHistoryByLoginUser(time);
    }

    public static Map<Long, UserHistoryAttribute> getUserHistoryAttributeMap(List<Long> userId) {
        return DaoHelper.getUserHistoryAttributeDaoImpl().getUserHistoryAttributeMap(userId);
    }

    public static UserHistoryAttribute getUserHistoryAttribute(long userId) {
        return DaoHelper.getUserHistoryAttributeDaoImpl().getUserHistoryAttribute(userId);
    }

    public static boolean addUserHistoryAttribute(UserHistoryAttribute userHistoryAttribute) {
        return DaoHelper.getUserHistoryAttributeDaoImpl().add(userHistoryAttribute);
    }

    public static boolean updateUserHistoryAttribute(UserHistoryAttribute userHistoryAttribute) {
        return DaoHelper.getUserHistoryAttributeDaoImpl().update(userHistoryAttribute);
    }
}
